<template>
  <div style="padding: 30px;">
    <div class="box-card">
      <div style="font-weight: 700;font-size: 22px;margin: 20px 0;">
        资格申请资料
      </div>
      <div class="f-column-between">
        <div class="f-row">
          <div style="width: 40%;"> <span>项目方公司名称：{{details.company}}</span></div>
          <div style="width: 40%;"><span>项目方公司文件资料：{{details.buLiGroupId}} -- {{details.companyRegGroupId}}</span></div>
        </div>
        <div style="margin-top: 20px;" class="f-row">
          <div style="width: 40%;"> <span>公司注册查询链接：{{details.companyRegUrl}} </span></div>
          <div style="width: 40%;"><span>公司查询截图资料：{{details.companyRegGroupId}} </span></div>
        </div>
        <div style="margin-top: 20px;" class="f-row">
          <div style="width: 40%;"> <span>项目授权人：{{details.authorize}} </span></div>
          <div style="width: 40%;" class="f-row-between"><span>授权人电话：{{details.phone}} </span> <span>授权委托书：{{details.power}}
            </span>
          </div>
        </div>
        <div style="margin-top: 20px;" class="f-row">
          <div style="width: 40%;"> <span>尽调文件：{{details.surDataGroupId}} </span></div>
          <div style="width: 40%;" class="f-row-between"><span>法律合规文件：{{details.lawDataGroupId}} </span> <span>审计文件：{{details.audDataGroupId}}
            </span>
          </div>
        </div>
      </div>
    </div>
    <div class="box-card" style="margin-top: 20px;">
      <div style="font-weight: 700;font-size: 22px;margin: 20px 0;">
        上链定价信息
      </div>
      <div class="f-column-between">
        <div class="f-row">
          <div style="width: 40%;"> <span>上链对标商品：{{details2.assetName}}</span></div>
          <div style="width: 40%;"><span>资产评估报告：{{details2.cocReportGroupId}}：</span></div>
        </div>
        <div style="margin-top: 20px;" class="f-row">
          <div style="width: 40%;"> <span>项目对标总资金：{{details2.totalPrice}}CYN</span></div>
          <div style="width: 55%;" class="f-row-between"><span>𝛧 = a × Κ × b × λ </span> <span>𝛧(总资金)=365665 CYN
            </span><span>a(商品单价)=3000CYN </span><span>Κ=1.2 </span><span> b(商品总量)=assetAmount</span><span>λ=1.35 </span> </div>
        </div>
        <div style="margin-top: 20px;" class="f-row">
          <div style="width: 40%;"> <span>首发价：{{details2.startPrice}} CNY </span></div>
          <div style="width: 55%;" class="f-row-between"><span>P = a × 𝛕 × 𝜑 × 𝛛 × 𝝎</span> <span>P=7.98 CNY </span>
            <span> a=3000CNY </span> <span> 𝛕=0.002 </span> <span> 𝜑=1.18 </span> <span> 𝛛=1.25 </span> <span>
              𝝎=1.15 </span>
          </div>
        </div>
      </div>
    </div>
    <div class="box-card" style="margin-top: 20px;">
      <div style="font-weight: 700;font-size: 22px;margin: 20px 0;">
        资产抵押信息
      </div>
      <div class="f-column-between">
        <div class="f-row">
          <div style="width: 40%;"> <span>抵押资产：{{details2.mortgage}}</span></div>
          <div style="width: 40%;" class="f-row-between"><span>抵押合同：{{details2.mortgageContractGroupId}}</span> <span>抵押资产评估报告：{{details2.mortgageGroupId}}</span></div>
        </div>
        <div style="margin-top: 20px;" class="f-row">
          <div style="width: 55%;" class="f-row-between"> <span>抵押资产估值：{{details2.benchmark}} CNY</span> <span>𝜠 = 𝛧 × 𝛄</span>
            <span>𝛧(总资金)=35,000,000 CYN</span> <span> 𝛄=2.0 </span></div>
        </div>
      </div>
    </div>
    <div class="box-card" style="margin-top: 20px;">
      <div style="font-weight: 700;font-size: 22px;margin: 20px 0;">
        资产发行信息
      </div>
      <div class="f-column-between">
        <div class="f-row">
          <div style="width: 15%;"> <span>超发率：{{details2.superRate}}</span></div>
          <div style="width: 40%;" class="f-row-between"><span>𝛍 = 𝛂 + 𝛃 + 𝛉 + 𝛆</span>
            <span>𝛂=0.25 </span> <span> 𝛃=0.10 </span> <span> 𝛉=0.10 </span> <span> 𝛆=0.05 </span> </div>
        </div>
      </div>
      <div style="margin-top: 20px;" class="f-row">
        <div style="width: 15%;"> <span>发行总量：{{details2.stAmount}}</span></div>
        <div style="width: 40%;" class="f-row-between"><span>𝚳 = 𝛧 × (1+𝛍 ) ÷ P</span>
          <span>𝛧=35,000,000 CNY </span>
          <span> 𝛍=0.55 </span> <span> P=7.98 CNY </span> </div>
      </div>
      <div style="margin-top: 20px;" class="f-row">
        <div style="width: 15%;"> <span>流通总量：{{details2.cirAmount}}</span></div>
        <div style="width: 55%;" class="f-row-between"><span>第一期发行量：30,000,000</span>
          <span>第二期发行量：15,000,000</span> <span>第三期发行量：15,000,000 </span> </div>
      </div>
      <div style="margin-top: 20px;" class="f-row">
        <div style="width: 100%;"> <span>发行地址：uge28qwods9a903hjkljf329iasjijaiod078hhd38808209</span></div>

      </div>
      <div style="margin-top: 20px;" class="f-row">
        <div style="width: 100%;"> <span>发行规则:{{details2.ruleFileGroupId}} </span></div>

      </div>
    </div>
  </div>
  </div>
</template>

<script>
  import serveApi from "@/api/serveApi"
  export default {
    data() {
      return {
        routeData: {},
        query1: {
            id:0,
            applyIstoId :0
        },
        details: {},
        details2: {}
      }
    },
    mounted() {
      this.userId = this.$store.state.userInfo.id;
      this.routeData = this.$route.query
      this.getDetails();
      this.getDetails2();
    },
    methods: {
      getDetails() {
        this.query1.id = this.routeData.id;
        serveApi.applySto_id(this.query1).then(res => {
          if (res.status == "0000") {
            if (res.data) {
              this.details = res.data;
            }
          } else {
            that.$message.error(res.message);
          }
        });
      },
      getDetails2() {
        this.query1.applyIstoId = this.routeData.applyIstoId;
        serveApi.applyIsto_id(this.query1).then(res => {
          if (res.status == "0000") {
            if (res.data) {
              this.details2 = res.data;
            }
          } else {
            that.$message.error(res.message);
          }
        });
      }
    }
  }
</script>

<style>
  .box-card {
    padding: 25px;
    box-shadow: 0px 0px 10px 0px rgba(178, 178, 178, 0.2);
    border-radius: 4px;
    background-color: rgba(77, 231, 231, 1.0);
  }
</style>
